package com.fm.demo.activity.dualScreen

import android.app.Presentation
import android.content.Context
import android.os.Bundle
import android.view.Display
import com.fm.demo.databinding.DisplayTestLayoutBinding

/**
 * @CreateData:     2019/11/15 14:57
 * @E-Mail:         709674174@qq.com
 * @Author:         lyy
 * @Description:    第二屏显示
 */
class TestDisplay(context: Context, display: Display) : Presentation(context, display) {
    private lateinit var binding: DisplayTestLayoutBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = DisplayTestLayoutBinding.inflate(layoutInflater)
        setContentView(binding.root)
    }


    fun setTitle(text: String) {
        binding.testTvTitle.text = text
    }
}